<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="software.Use_user" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv='refresh' content='2;url=index.jsp'> 
<html>
  <head>
  
    <title>软件开发交流平台</title>
<link href="../css/register_success.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
  <%
  	int ID=0;
	 try{
		  ID=Integer.parseInt(request.getParameter("id"));
	  }catch(Exception e){ }
  	Use_user register_s=new Use_user();
  	register_s.Read(ID);
  %>
 	<jsp:include page="head.jsp" />
    <div id="contianer">
        <div id="register_sure">
        <div style="border:0px;padding:0px; float:left;height:380px;">
        <%
		String Phosrc=null;
		String saveurl=request.getRealPath("/")+"Photo"+"\\"+register_s.getPhoto();
		java.io.File file = new java.io.File(saveurl); 	//读入刚才上传的文件
		if(file.exists())
    	{
    		Phosrc="../Photo/"+register_s.getPhoto();
    	}
    	else Phosrc="../Photo/photo90.jpg";
		session.setAttribute("PhoSrc",Phosrc);
	 	session.setAttribute("Nickname",register_s.getName());
	 	session.setAttribute("ID",ID);
        %>
        <div id="image"><img src="<%=Phosrc %>" width="120" height="120" /></div>
        <table width="146" border="0" cellpadding="0" cellspacing="0" style="margin-top:22px; font-size:16px; font-weight:bolder; margin-left:115px;">
          <tr>
            <td width="146" height="33"><%=register_s.getName() %></td>
          </tr>
          <tr>
            <td height="33"><%=register_s.getNickName() %></td>
          </tr>
          <tr>
            <td height="33"><%int k=register_s.getSex(); if(k==1)out.print("男");else out.print("女");%></td>
          </tr>
          <tr>
            <td height="33"><%=register_s.getEmail() %></td>
          </tr>
          <tr>
            <td height="33"><%=register_s.getBirthday() %></td>
          </tr>
        </table>
        </div>
        <p style="margin-top:163px; font-size:32px; color:#0AF5F5; font-weight:bolder; "><%=register_s.getNickName() %></p>
        </div>
    </div>
 	<jsp:include page="footer.jsp" />
  </body>
</html>
